package com.aaa.jdbc.userinfo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/27 9:23
 * @description：实体类
 * @modified By：
 * @version: 1.0
 */
public class UserInfo  implements Serializable {
    private  int id;
    private String username;
    private String password;
    private Date createTime;
    private  String phone;

    public UserInfo() {
    }

    public UserInfo(int id, String username, String password, Date createTime, String phone) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.createTime = createTime;
        this.phone = phone;
    }

    public UserInfo(String username, String password, Date createTime, String phone) {
        this.username = username;
        this.password = password;
        this.createTime = createTime;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", phone='" + phone + '\'' +
                '}';
    }
}
